package edu.towson.cosc.cosc455.zsierakowski.compiler;

import edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer;

public class MySyntaxAnalyzer implements SyntaxAnalyzer {

	@Override
	// #HAI head? body? #KTHXBYE
	public void lolcode() {
		if(!MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_BEGIN)){
			System.err.println("SYNTAX ERROR: Found " + MyCompiler.token + "when "
					+ LexicalTokens.DOC_BEGIN + "was expected");
			System.exit(0);
		}
		
		// add to parse tree parseTreeStack.PUSH(MyCompiler.token)
		MyCompiler.Lexer.getNextToken();
		
		if(MyCompiler.token.equalsIgnoreCase(LexicalTokens.HEAD_BEGIN)){
			head();
		}
		else if(MyCompiler.token.equalsIgnoreCase(LexicalTokens.COMMENT_BEGIN)){
			comment();
		}
		
		if(MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_END)){
			System.err.println("SYNTAX ERROR: Found " + MyCompiler.token + "when "
					+ LexicalTokens.DOC_END + "was expected");
			System.exit(0);
		}
		
	}

	@Override
	public void comment() {
		// TODO Auto-generated method stub

	}

	@Override
	public void head() {
		// TODO Auto-generated method stub

	}

	@Override
	public void title() {
		// TODO Auto-generated method stub

	}

	@Override
	public void paragraph() {
		// TODO Auto-generated method stub

	}

	@Override
	public void bold() {
		// TODO Auto-generated method stub

	}

	@Override
	public void italics() {
		// TODO Auto-generated method stub

	}

	@Override
	public void list() {
		// TODO Auto-generated method stub

	}

	@Override
	public void item() {
		// TODO Auto-generated method stub

	}

	@Override
	public void audio() {
		// TODO Auto-generated method stub

	}

	@Override
	public void video() {
		// TODO Auto-generated method stub

	}

	@Override
	public void define() {
		// TODO Auto-generated method stub

	}

	@Override
	public void use() {
		// TODO Auto-generated method stub

	}

}
